/**
 * 
 */
package com.woniuxy.handler;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.woniuxy.pojo.OGRoom;
import com.woniuxy.pojo.Order_yyh;
import com.woniuxy.service.CheckinService;

import lombok.Data;

/**
 * @author Fz
 * @date 2019年8月10日 下午3:56:37
 * @param 
 * @return
 */
@Controller
@RequestMapping("/checkin")
@Data
public class CheckinHandler {
	@Resource
	private CheckinService checkinService; 
	
	@RequestMapping("/getorder")
	@ResponseBody
	public Order_yyh getOrder(String message){
		return checkinService.getOrder(message);
	}
	
	@RequestMapping("/gointo")
	public String goInto(Order_yyh order_yyh){
		checkinService.update(order_yyh);
		System.out.println(order_yyh);
		return "/checkin.html";
	}
}
